//http://localhost:3000/images/shop/sam.jpeg
//http://localhost:3000/images/shop/wmt.jpeg
/**
 * @description test ShopInfo Data
 */

const shopModel = require("../../models/shopInfoModel");

!(async () => {
  const res1 = shopModel.create({
    name: "Sam",
    imgUrl: "/images/shop/sam.jpeg",
    sales: 10000,
    expressLimit: 0,
    expressPrice: 10,
    slogan: "我是山姆吕小布",
  });
  const res2 = shopModel.create({
    name: "WharMart",
    imgUrl: "/images/shop/wmt.jpeg",
    sales: 20000,
    expressLimit: 20,
    expressPrice: 90,
    slogan: "我是沃尔玛",
  });
  const res = await shopModel.find().sort({ updatedAt: -1 });
  console.log(res);
})();
